
package com.annvcit.util;

/**
 * @author annvcit
 * @full_name Nguyen Van Chuc An
 * @date_created Dec 16, 2014
 * @date_modified Dec 16, 2014
 * @email annvcit@gmail.com
 */
public class AdjMatrix {
	private int[][] intMtrx;
	private double[][] doubleMtrx;
	private int nOfVerties;

	public int[][] getIntMtrx() {
		return intMtrx;
	}

	public void setIntMtrx(int[][] intMtrx) {
		this.intMtrx = intMtrx;
	}

	public double[][] getDoubleMtrx() {
		return doubleMtrx;
	}

	public void setDoubleMtrx(double[][] doubleMtrx) {
		this.doubleMtrx = doubleMtrx;
	}

	public int getnOfVerties() {
		return nOfVerties;
	}

	public void setnOfVerties(int nOfVerties) {
		this.nOfVerties = nOfVerties;
	}
	
	public void printIntMtrx() {
		for (int i = 0; i < nOfVerties; i++) {
			for (int j = 0; j < nOfVerties; j++) {
				System.out.print(intMtrx[i][j] + " ");
			}
			System.out.println();
		}
	}
	
	public void printDouMtrx() {
		for (int i = 0; i < nOfVerties; i++) {
			for (int j = 0; j < nOfVerties; j++) {
				System.out.print(doubleMtrx[i][j] + " ");
			}
			System.out.println();
		}
	}

}
